import java.sql.Array;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: MENG
 * Date: 2022-06-02
 * Time: 14:56
 */



/*//定义一个泛型MyArray
class MyArray<T>{
    public T[] array = (T[])new Object[10];

    public T getPos(int pos){
        return array[pos];
    }
    public void setVal(int pos, T val){
        this.array[pos] = val;
    }
}*/
public class Test {


    /*public static void main1(String[] args) {
        MyArray<String> myArray = new MyArray<String>();

        myArray.setVal(0,"abc");
        myArray.setVal(1,"bbb");
        String s = myArray.getPos(0);
        String s1 = myArray.getPos(1);
        System.out.println(s+s1);

        MyArray<Integer> myArray1 = new MyArray<Integer>();
        myArray1.setVal(0,168);
        myArray1.setVal(1,169);
        int ret = myArray1.getPos(0);
        System.out.println(ret);
    }*/

}